<template>
  <table class="table table-bordered table-stripped">
    <!-- 表格标题区域 -->
    <thead>
        <slot name="header">默认标题</slot>
    </thead>
    <!-- 表格主体区域 -->
    <tbody>
        <slot :row="list" name="body">默认主体</slot>
    </tbody>
  </table>
</template>

<script>
export default {
  name: 'MyTable',
  props:{
      list:{
          type:Array,
          require:true
      }
  }
}
</script>


<style scoped lang="less">
.my-goods-list {
  .badge {
    margin-right: 5px;
  }
}
</style>